#ifndef ColorPicker_First
#define ColorPicker_First
#ifdef __GNUG__
#pragma interface
#endif

#include "Dialog.h"
#include "ColorPicker_e.h"

class HSVPicker;
class RGBPicker;
class ColorCell;
class OrdCollection;
class CompositeVObject;

//---- ColorPicker ------------------------------------------------------------------

class ColorPicker: public Dialog {
	ColorCell *oldcell, *newcell;
	RGB color, oldcolor;
	OrdCollection *pickers;
	CompositeVObject *border;
	int current;
public:
	MetaDef(ColorPicker);
	ColorPicker(char *name= "ColorPicker");
	VObject *DoMakeContent();
	void Control(int id, int part, void *val);
	RGB PickColor(const RGB &c);
	void DoSetup();
	void DoSetDefaults();
};

#endif
